package com.rush.manageepac.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
public class News {
    private Integer id;
    private String title;
    private String content;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//返回
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//接受
    private Date date ;
    private String name;
}
